package c.e.a.c.l;

import android.view.View;
import android.view.View.OnClickListener;
import c.e.a.c.l.d.e;

/* compiled from: MaterialCalendar */
public class h implements OnClickListener {
    public final /* synthetic */ d a;

    public h(d dVar) {
        this.a = dVar;
    }

    public void onClick(View view) {
        d dVar = this.a;
        e eVar = e.DAY;
        e eVar2 = dVar.c0;
        e eVar3 = e.YEAR;
        if (eVar2 == eVar3) {
            dVar.p0(eVar);
        } else if (eVar2 == eVar) {
            dVar.p0(eVar3);
        }
    }
}
